package controller;

import java.util.List;

import entity.T_account;
import mapper.EmpMapper;
import service.EmpService;

public class EmpController {
	EmpMapper empMapper=new EmpService();
	public List<T_account> allInfoList(){
		List<T_account> queryAll = empMapper.queryAll();
		return queryAll;
	}
	//添加
	public int addAccount(T_account t_account){
		return empMapper.addAccount(t_account);
	}
	//更新
	public int updataAccount(T_account t_account){
		return empMapper.updateAccount(t_account);
	}
	//删除
	public int delInfo(int id){
		return empMapper.del(id);
	}
	
}
